/**
 * 
 */
package com.wm.service;

import java.util.List;

import com.wm.bean.Area;
import com.wm.bean.City;
import com.wm.bean.Restaurant;
import com.wm.service.web.PageList;
import com.wm.service.web.Pages;

/**
 * @author zhangbaochao
 *
 */
public interface RestaurantService {
	/**
	 * 保存Restaurant对象
	 * 
	 * @param restaurant
	 * 			Restaurant
	 * @return Restaurant
	 * 			Restaurant
	 */
	public Restaurant saveRestaurant(Restaurant restaurant);
	
	/**
	 * 更新Restaurant对象
	 * 
	 * @param restaurant
	 * 			Restaurant
	 * @return Restaurant
	 * 			Restaurant
	 */
	public Restaurant updateRestaurant(Restaurant restaurant);
	
	/**
	 * 根据ID获取Restaurant对象
	 * 
	 * @param id
	 * 			long
	 */
	public void removeRestaurantById(long id);
	
	/**
	 * 根据ID获取Restaurant对象
	 * 
	 * @param id
	 * 			long
	 * @return Restaurant
	 * 			Restaurant
	 */
	public Restaurant findRestaurantById(long id);
	
	/**
	 * 根据参数获取Restaurant对象列表
	 * 
	 * @param isShow
	 * 			int
	 * @param orderby
	 * @param ascOrDesc
	 * @return PageList
	 * 			PageList
	 */
	public PageList findRestaurantsByResNameValidIsShow(String resName,int valid,int isShow,String orderby,int ascOrDesc,Pages pages);
	
	/**
	 * 前台查询用
	 * @param id
	 * @param valid
	 * @param isShow
	 * @return
	 */
	public Restaurant findRestaurantByIdValidIsShow(long id,int valid,int isShow);
	
	/**
	 * 根据坐标查询
	 * @param pointX
	 * @param pointY
	 * @param valid
	 * @param isShow
	 * @return
	 */
	public List findRestaurantByPointXPointYValidIsShow(double pointX,double pointY,int valid,int isShow );
	
}
